#ifndef __SHELL_PORT_H__
#define __SHELL_PORT_H__

#include "main.h"
#include "stdio.h"
#include "shell.h"
#include "cmsis_os.h"
#include "stdarg.h"


#define SHELL_UART_HANDLE huart1
#define SHELL_DMA_RX hdma_usart1_rx
#define SHELL_RECEIVE_LENGTH_MAX 256
#define STANDARD_UART_IO_HANDLE huart1				//C标准库printf函数所使用的串口

extern Shell shell;
extern UART_HandleTypeDef SHELL_UART_HANDLE;
extern DMA_HandleTypeDef SHELL_DMA_RX;
extern osMutexId ShellMutexHandle;					//在cubemax中申明
extern UART_HandleTypeDef STANDARD_UART_IO_HANDLE;



void userShellInit(void);
void shellendprintf(const char *format,...);
#define shellprintf(fmt, ...) shellPrint(&shell, fmt, ##__VA_ARGS__);


void SHELL_Code_Receive_IQR_Handler(void);
void SHELL_receive_init(void);


#endif
